home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypercrd
/
xcmds
/
dvlprstc.hqx
/
Developer Stack 1.3r
/
card_23216.txt
< prev
next >
Wrap
Text File
|
1991-04-30
|
2KB
|
79 lines
-- card: 23216 from stack: in.3r
-- bmap block id: 0
-- flags: 0000
-- background id: 14090
-- name: MergeStacks
-- part 1 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=77 top=119 right=149 bottom=282
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Merge Stacks
----- HyperTalk script -----
on mouseUp
if the optionkey is down then pass mouseup
global destination,source
put "Copy cards FROM which stack?"
put filename("STAK") into source
if source is empty then exit mouseUp
put "Paste cards TO the end of which stack?"
put filename("STAK") into destination
if destination is empty then exit mouseUp
answer "Merge stack " & quote & source & quote & " and " & quote & destination & quote & " ?" with "Merge" or "Cancel" --give user chance to bail out
if it = "Cancel" then exit mouseUp
show message box
put "After I'm done, I'll leave you at the merged stacks." into message
set lockScreen to true
go to stack source
repeat for the number of cards
domenu copy card
go next card
push card
go last card of destination
domenu paste card
pop card
end repeat
set lockScreen to false
go to stack destination
put "Merge Complete! You're at the beginning of stack " & destination
end mouseUp
-- part 2 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=66 top=51 right=105 bottom=300
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part contents for background part 5
----- text -----
6
-- part contents for background part 12
----- text -----
MergeStacks
-- part contents for card part 2
----- text -----
This button will append one stack onto the end of another one.
-- part contents for background part 13
----- text -----
Buttons